package com.smartstate.admin.biz.convert;

import com.smartstate.admin.biz.entity.bo.User;
import com.smartstate.admin.biz.entity.dto.UserDto;
import org.springframework.beans.BeanUtils;

public class UserConvert {
    /**
     *   dto转bo
     */
    public static  User buildBo(UserDto userDto){
        User user = new User();
        BeanUtils.copyProperties(userDto,user);
        return user;
    }
}
